
import 'package:mysql1/mysql1.dart';

///表tbpuscfg
class PusInfo{

  int id;
  int pusValue;
  String pusSName;
  String pusLName;
  int pusColor;
  int pusPush;

  PusInfo(this.id, this.pusValue, this.pusSName, this.pusLName, this.pusColor,
      this.pusPush);

  static PusInfo builder(ResultRow row) {
    int id = row[0];
    int pusValue = row[1];
    String pusSName = null==row[2] ? "":row[2].toString();
    String pusLName = null==row[3] ? "":row[3].toString();
    int pusColor = row[4];
    int pusPush = row[5];
    return PusInfo(id, pusValue, pusSName, pusLName, pusColor, pusPush);
  }
}